package com.weipai.springboot.module.controller;

import com.weipai.springboot.model.ReputationHistory;
import com.weipai.springboot.model.api.Response;
import com.weipai.springboot.module.service.ReputationHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author songmengqiang
 * @create 2018-09-26 18:35
 **/
@RestController
public class ReputationHistoryController {

    @Autowired
    private ReputationHistoryService reputationHistoryService;

    @RequestMapping("/reputation/save")
    Response save(ReputationHistory reputationHistory) {
        return reputationHistoryService.save(reputationHistory);
    }

    //信誉值充值消费记录
    /*

     */
    @RequestMapping("/reputation/query")
    Response query() {
        return reputationHistoryService.queryByCustomerId();
    }
}
